<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" template="layout/template.xhtml">

	<ui:define name="body">

		<rich:panel>
			<f:facet name="header">聚会信息追加</f:facet>
			<h:form>
				<table>
					<tbody>
						<tr>
							<td>聚会名称</td>
							<td><h:inputText value="#{nomikai.name}" /></td>
						</tr>
						<tr>
							<td>日期</td>
							<td><rich:calendar value="#{nomikai.date}" locale="ja" /></td>
						</tr>
						<tr>
							<td>详细</td>
							<td><h:inputTextarea value="#{nomikai.detail}" cols="40"
									rows="10" /></td>
						</tr>
					</tbody>
				</table>

				<rich:dataTable value="#{candidates}" var="candidate">
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="参加者名" />
						</f:facet>
						<h:outputText value="#{candidate.nomikaimember.userid.name}" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="参加者候补" />
						</f:facet>
						<h:selectBooleanCheckbox value="#{candidate.register}" />
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText styleClass="headersText" value="干事" />
						</f:facet>
						<h:selectBooleanCheckbox
							value="#{candidate.nomikaimember.steward}" />
					</h:column>
				</rich:dataTable>

				<h:commandButton action="#{nomikaiAction.create}" value="insert"
					rendered="#{nomikaiDto.nomikaiid==null}" />
				<h:commandButton action="#{nomikaiAction.update}" value="update"
					rendered="#{nomikaiDto.nomikaiid!=null}" />
				<h:commandButton action="#{nomikaiAction.delete}" value="delete"
					rendered="#{nomikaiDto.nomikaiid!=null}" />
			</h:form>
		</rich:panel>
	</ui:define>

</ui:composition>
